<!DOCTYPE html>
<html>
    <head>
        <style>
            html,body {
                height: 100%;
                margin: 0;
                padding: 0;
                overflow: hidden;
            }
            .container {
                width: 100%;
                display: grid;
                grid-template-rows: 100px; /*设置行高 */
                grid-template-columns: 200px auto 200px; /* 设置列数属性 */
            }
            .left, .right {
                background: #333;
            }
            .main {
                background: red;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="left">Left</div>
            <div class="main">Main</div>
            <div class="right">Right</div>
        </div>
    </body>
</html>